package com.aidong.video.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.home.biz.TrnHomeBiz;
import com.aidong.home.dao.TrnHomeDao;
import com.aidong.home.entity.ActivityHome;
import com.aidong.home.entity.CourseHome;
import com.aidong.home.entity.FoodHome;
import com.aidong.video.biz.TrnVideoBiz;
import com.aidong.video.dao.TrnVideoDao;
import com.aidong.video.entity.FoodList;
import com.aidong.video.entity.VideoContent;
import com.aidong.video.entity.VideoCourse;
import com.aidong.video.entity.VideoHome;


@Service("trnVideoBiz")
public class TrnVideoBizImpl implements TrnVideoBiz {
	
	private TrnVideoDao trnVideoDao;

	@Autowired
	public void setTrnVideoDao(TrnVideoDao trnVideoDao) {
		this.trnVideoDao = trnVideoDao;
	}

	@Override
	public List<VideoHome> getVideoList(Map<String, Object> map) {
		return trnVideoDao.getVideoList(map);
	}
	/**
	 * 视频列表（深入和名人）
	 * @param map
	 * @return
	 */
	@Override
	public List<VideoHome> getVideoListOther(Map<String, Object> map){
		return trnVideoDao.getVideoListOther(map);
	}

	@Override
	public Map<String, Object> getVideoDetail(Map<String, Object> map) {
		return trnVideoDao.getVideoDetail(map);
	}

	@Override
	public List<VideoContent> getVideoDetailList(Map<String, Object> map) {
		return trnVideoDao.getVideoDetailList(map);
	}

	/**
	 * 获取系列相关的视频
	 * @param map
	 * @return
	 */
	public List<VideoContent> getVideoRList(Map<String, Object> map){
		return trnVideoDao.getVideoRList(map);
	}
	public List<VideoContent> getVideoPraiseList(Map<String, Object> map){
		return trnVideoDao.getVideoPraiseList(map);
	}
	/**
	 * 获取系列相关的商品
	 * @param map
	 * @return
	 */
	public List<FoodList> getVideoFoodList(Map<String, Object> map){
		return trnVideoDao.getVideoFoodList(map);
	}
	
	/**
	 * 获取系列相关的课程
	 * @param map
	 * @return
	 */
	public List<VideoCourse> getVideoCourseList(Map<String, Object> map){
		return trnVideoDao.getVideoCourseList(map);
	}
	
	/**
	 * 向数据库中添加播放人
	 * @param map
	 * @return
	 */
	public int addVideoPersion(Map<String, Object> map){
		return trnVideoDao.addVideoPersion(map);
	}
}